Battery dynamics